package cn.coastalinfo.project.drools.domain.bo;

import cn.coastalinfo.common.core.validate.AddGroup;
import cn.coastalinfo.common.core.validate.EditGroup;
import cn.coastalinfo.framework.web.domain.BaseEntity;
import cn.coastalinfo.project.drools.enums.VariableEnums;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import javax.validation.constraints.*;


/**
 * 参数业务对象
 *
 * @author hadge
 * @date 2024-06-07
 */

@Data
@EqualsAndHashCode(callSuper = true)
public class RuleVariableBo extends BaseEntity {

    /**
     * $column.columnComment
     */

    private Long id;

    /**
     * 中文标题
     */
    @ApiModelProperty("名称")
    @NotBlank(message = "中文标题不能为空", groups = { AddGroup.class, EditGroup.class })
    private String label;

    /**
     * 描述
     */

    private String description;

    /**
     * 类型
     */
    @ApiModelProperty("类型")
    private VariableEnums valueType;

    /**
     * 分组
     */
    @ApiModelProperty("分组，暂不用")
    private String groupName;

    /**
     * 参数名
     */
    @ApiModelProperty("编码")
    private String value;

    /**
     * $column.columnComment
     */

//    private Long deleted;


}
